﻿using Snake.Core;

namespace Snake.SQL.SQLNode
{
    public class Where : ISQLNode
    {
        private IExprNode expr;

        public Where(IExprNode expr)
        {
            this.expr = expr;
        }

        public void Render(SQLWriter writer)
        {                     
            writer.AppendLine(SQLStrings.Where);
            expr.Render(writer);
        }
    }
}
